package day240415.work;

public class Student {
    //1.state(field,var...）
    int number;
    int state;
    int score;
    //2.behavior(method,function)
    public Student(int n){
        number=n;
        state=(int)(Math.random()*6+1);
        score=(int)(Math.random()*101);

    }
    public void show(){
        System.out.println("学号"+number+"年级"+state+"成绩"+score);
    }
}

